//
//  PullBtnCollectionViewCell.m
//  礼物go
//
//  Created by dllo on 16/5/21.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "PullBtnCollectionViewCell.h"

@implementation PullBtnCollectionViewCell

-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self createSubviews];
    }
    return self;
}

-(void)createSubviews{
    self.titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, self.contentView.frame.size.width, self.contentView.frame.size.height - 1)];
    self.titleLabel.font = [UIFont systemFontOfSize:15];
    self.titleLabel.textAlignment =  NSTextAlignmentCenter;
    [self.contentView addSubview:self.titleLabel];
    
    self.lineView = [[UIView alloc] initWithFrame:CGRectMake(0, self.contentView.frame.size.height - 1, self.contentView.frame.size.width, 1)];
    [self.contentView addSubview:self.lineView];
}

-(void)setTitleButton:(TitleButtonModel *)titleButton{
    _titleButton = titleButton;
    self.titleLabel.text = titleButton.name;
}




@end
